package com.tjetc.view.impl;

import com.tjetc.pojo.dto.UserDTO;
import com.tjetc.utils.ScannerUtils;
import com.tjetc.view.UserLoginPage;

/**
 * @Author: itda
 * @Date: 2024/5/10 19:42
 * @Description: UserLoginPageImpl
 */
public class UserLoginPageImpl implements UserLoginPage {
    @Override
    public UserDTO login() {
        System.out.println("请输入用户名:");
        String userName = ScannerUtils.sc.next();
        System.out.println("请输入密码:");
        String password = ScannerUtils.sc.next();
        return UserDTO.builder().username(userName).password(password).build();
    }
}
